Page( {  
  data: {  
    tabArr: {  
      curHdIndex: 0,  
      curBdIndex: 0
    },
    windowHeight:0,
    windowWidth:0,
    scrowHeight:0
  }, 
  onShow: function( e ) {
    wx.getSystemInfo( {
      success: ( res ) => {
        this.setData( {
          windowHeight: res.windowHeight,
          windowWidth: res.windowWidth,
          scrowHeight:res.windowHeight-34,
        })
      }
    })
  }, 
  tabFun: function(e){  
    //获取触发事件组件的dataset属性  
    var _datasetId=e.target.dataset.id;  
    console.log("----"+_datasetId+"----");  
    var _obj={};  
    _obj.curHdIndex=_datasetId;  
    _obj.curBdIndex=_datasetId;  
    this.setData({  
      tabArr: _obj  
    });  
  },  
  onLoad: function( options ) {  
    console.log( "------" );  
  },
  pullDownRefresh: function( e ) {
    console.log( "下拉刷新...." )
    this.onLoad()
  },
  pullUpLoad: function( e ) {
    console.log( "上拉拉加载更多...." + this.data.page );
    wx.showNavigationBarLoading();
  }, 
});  